package com.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.entity.UserRoles;
import com.example.service.UserRolesService;

@RequestMapping("/userRoles")
@RestController
public class UserRolesController {
	
	
	@Autowired
	private UserRolesService userRolesService;
	
	/**
	 *添加
	 * @param id
	 * @return
	 */
	@RequestMapping(path = "/addUserRoles")
	public int upUserRoles(UserRoles userRoles) { // 受影响的行数 
		return userRolesService.addUserRoles(userRoles);
	}
	/**
	 *删除
	 * @param id
	 * @return
	 */
	@RequestMapping(path = "/delUserRoles")
	public int delUserRoles(UserRoles userRoles) { // 受影响的行数 
		return userRolesService.delUserRoles(userRoles);
		

	}
	 
}
